from flask import Flask, request
from flask_jwt_extended import JWTManager, jwt_required, create_access_token

from myapp.app import jwt


# 返回jwt值
def createJWT(identity):
    return create_access_token(identity)

# 检验jwt 用@jwt_required（）,获得信息则通过get_jwt_identity()
